<template>
  <div style="min-height: 500px;">
    <div class="_header">
      {{data.title}}
      <span>发布时间: {{data.up_time}}</span>
    </div>
    <!-- <h2>{{data.title}}</h2> -->
    <p v-html="data.content" style="padding: 10px 30px; font-size: 16px;text-indent: 32px;letter-spacing:1px;line-height:25px;">

    </p>
  </div>
</template>

<script>
  export default {
    name: "AdminInform1",
    data(){
      return{
        data:null
      }
    },
    methods:{
      init(){
        let _this = this;
        _this.$http
          .post("/api/api.php", {
            id: "getNotice",
            nid:_this.$route.query.id
          })
          .then(function (response) {
            _this.data = response.data.data
            console.log(_this.data);
          });
      }
    },
    created(){
      this.init()
    }
  }
</script>

<style scoped>
._header{
  margin: 20px 28px 24px 28px;
  padding-bottom: 40px;
  border-bottom: 3px solid #dee1e2;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #171717;
  position: relative;
}
._header span{
  position: absolute;
  bottom: 5px;
  right: 6px;
  font-size: 14px;
  font-weight: normal;
  color: #9d9c9a;
}
h2{
  text-align: center;
  color: rgb(102, 102, 102);
}
</style>
